The House approved a bill directing the Justice Department to release all files related to its investigation into Jeffrey Epstein, in a near-unanimous vote. Hours later, Senator Chuck Schumer won unanimous agreement for the Senate to pass the measure as soon as it arrived in the chamber.
As soon as the resolution passed, Democrats, among them Teresa Leger Fernandez of New Mexico, center, turned and applauded the House gallery where survivors of Jeffrey Epstein, the convicted sex offender, were seated.
Faced with a mass defection on a bill to demand the release of the Epstein files, the president rushed to avoid an embarrassing loss, suggesting a slip in his iron grip on the G.O.P.
Demonstrators outside the Capitol last week. As Republicans gear up for midterm elections and some begin to plot a future after Mr. Trump, the Epstein episode is a rare instance in which he has lost control.