A man has been found guilty of murdering a two-year-old girl who was found dead in a locked bathroom at a temporary housing unit.