ALEXANDRIA, Va. — President Obama signed legislation on Tuesday to expand college access for millions of young Americans by revamping the federal student loan program in what he called “one of the most significant investments in higher education since the G.I. Bill.”

Mr. Obama went to a community college where the wife of his vice president teaches to draw attention to the student loan overhaul attached to the final piece of health care legislation that passed last week. In signing the bill, Mr. Obama put the final touches on his health care program but used the occasion to highlight the education provisions.

“That’s two major victories in one week,” he told students and guests at the Alexandria campus of Northern Virginia Community College, where Jill Biden teaches English. While he praised the health care overhaul, the president said, “what’s gotten overlooked amid all the hoopla, all the drama of last week, is what’s happened with education.”

Image President Obama on Tuesday promoted the new education loan law at Northern Virginia Community College in Alexandria. Credit... Luke Sharrett/The New York Times

The new law will eliminate fees paid to private banks to act as intermediaries in providing loans to college students and use much of the nearly $68 billion in savings over 11 years to expand Pell grants and make it easier for students to repay outstanding loans after graduating. The law also invests $2 billion in community colleges over the next four years to provide education and career training programs to workers eligible for trade adjustment aid after dislocation in their industries.