Humza Yousaf has been officially elected as Scotland's new first minister after he was backed by a majority of MSPs.