WASHINGTON—The Senate voted to end a rule designed to curb racial discrimination in auto financing, the latest Republican effort to roll back Obama-era consumer-finance regulations.

The measure was approved 51-47 on Wednesday largely along the party lines, with one Democrat—Sen. Joe Manchin (D., W.Va.)—joining Republicans. The House is expected to follow suit, sending it to the White House to be signed into law.

Republicans...