The 52-47 vote broke largely along party lines and capped weeks of divisive battles over Sessions, an early supporter of Donald Trump and one of the Senate’s most conservative Republicans. Democrats laced into Sessions over his ties to Trump and his record on civil rights and immigration.