Two Democrats vote with Republicans to pass transgender sports ban