The president says the result was "stolen" but his lawyers may struggle to make a strong case in court.