The law change will also make it illegal for landlords to ban renting to families with children or on benefits