Republicans turn against Hegseth after election losses