It was the first federal shutdown since 2019, when parts of the government were shuttered for 35 days in a standoff between congressional Democrats and Mr. Trump over the president’s demand to fund a ...