Sturgeon and Yousaf criticized UK Government and Scottish Police Federation respectively, according to WhatsApp messages revealed at the inquiry.