A pilot to provide free bus travel for under 18s in Barnsley has been given the green light by the council’s cabinet.