A six-month stopgap funding bill cleared the Senate on Friday after enough Democrats crossed the aisle to vote to end debate.