WASHINGTON — President Barack Obama has signed a bill that aims to keep severely wounded Iraq and Afghanistan veterans in their homes by providing billions of dollars in support to family members who care for them.

At a bill signing event at the White House today, Obama said the government’s responsibility to take care of veterans and their families is a “moral obligation.”

The bill instructs the Veterans Affairs Department to offer post-delivery care to female veterans’ newborns and create a childcare pilot program. And, it includes expanded funding for programs assisting homeless and rural veterans.

The price tag over five years is an estimated $3.7 billion.

Under it, caregivers of the estimated 2,000 severely wounded veterans from the recent conflicts can receive training, a monthly stipend and health care.