Trump had pleaded not guilty in both cases. This brings to an end the prosecution of the US 45th and 47th president.