House Speaker Mike Johnson put his job on the line to allow votes on a $95 billion foreign-aid package and legislation to force a sale of TikTok from its Chinese parent company.