Court gave written order to Johnny Depp and Amber Heard