Laws aimed at making life fairer for leaseholders in England have been rushed through Parliament.