The 35-day closure, the longest in U.S. history, had furloughed 800,000 federal employees while the president and Democrats battled over the wall.