Legislation that passed unanimously would end the practice of setting clocks back one hour in the fall. Its prospects were uncertain in the House.