Despite an amendment to the Children's Wellbeing and Schools Bill being rejected three times by MPs, peers voted by 316 by 165 for the measure.