Elon Musk’s team started a behind-the-scenes push for White House control over federal spending that is now an undercurrent of the government shutdown.