The Senate advanced the foreign aid package, which includes a provision that could lead to a ban on TikTok, after months of disagreement in Congress.