Republicans blustered for months on Hegseth’s questionable nomination. Then they did Trump’s bidding