The Duke of Sussex has returned to the UK, but his first day of engagements was overshadowed by his defeat in court.