A government shutdown — it certainly wasn’t what President Trump had in mind when he prepared to mark his first year in office. But in the end he had to cancel the party at Mar-a-Lago and stay in the White House while lawmakers tried to pass a bill that would reopen the government.