SALEM, Ore. (AP) — The Oregon House has passed a bill, after emotional debate on both sides, that would mandate safe storage of firearms and ban them from the state Capitol.

The bill next goes to the Senate, which had passed a much narrower version of the bill before it was amended. Two separate gun bills had been watered down somewhat and then combined into one measure.

The bill is aimed at reducing the number of accidentally shootings by children who get ahold of guns, of suicides and of mass shootings.

Republican lawmakers said the bill will deprive people the ability to protect themselves.