A bill that would bar landlords from banning firearms on rental properties is headed to the governor’s desk.