A baby died after suffering serious sexual assaults in a 'sinister' campaign of abuse at the hands of a teacher who was in the process of adopting him, a court heard.