WASHINGTON—The Senate Judiciary Committee voted along party lines Thursday to ban certain semiautomatic weapons known as assault weapons, but the measure isn't expected to survive on the Senate floor.

In the 10-8 vote to reinstate the expired Federal Assault Weapons Ban and to bar the sale of high-capacity magazines that can hold more than 10 rounds, all Republicans voted "no," and all Democrats voted "yes."

The...