Support for the bill was higher among MPs elected for the first time at this year’s general election.