PATTERSON, N.Y.—A new Pennsylvania law requiring automatic fire sprinkler systems in all new one- and two-family homes as of Jan. 1 was battling for survival this week in the General Assembly.