A bill that prevents cities from removing historic monuments, including Confederate memorials, advanced in the House.