Microsoft went to court to defend its decision not to hand over the emails from Ireland.