vote along party lines
idiomDefinition of vote along party lines
: to vote in a manner that is consistent with the official policy or opinion of one's political party
Congress voted along party lines on the new education bill.