BRIDGEWATER, N.J. — President Trump on Wednesday signed into law an updated veterans’ education bill that marks the largest expansion of college assistance for military veterans in a decade.

The Forever GI act immediately removed a 15-year time limit on GI benefits. The measure also increases financial assistance for thousands serving in the National Guard and Reserve, building on a 2008 law that guaranteed veterans a full-ride scholarship to any in-state public university, or a similar cash amount to attend private colleges.

Veterans Affairs Secretary David Shulkin, who joined Trump for the signing, said the new law also provides benefits to Purple Heart recipients whose injuries forced them to leave the service. Benefits can also now be transferred to the eligible dependent of service members who are killed in the line of duty.

Veterans would get additional payments for completing science, technology and engineering courses, part of a broad effort to better prepare veterans for life after active-duty service amid a fast-changing job market.