Sir Keir Starmer was among the majority of MPS to support the proposed legislation.