Legally-binding targets were set by the Scottish Parliament in 2017 to reduce the number of youngsters in relative poverty.