MANILA — The Supreme Court of the Philippines dismissed corruption charges on Tuesday against a former president, Gloria Macapagal Arroyo, and ordered her release from a Manila hospital where she has been detained since 2012. Her lawyer said she was likely to be freed on Wednesday.

The court, voting 11 to 4, ruled that there was insufficient evidence to bring a case against Mrs. Arroyo in connection with the misuse of 366 million pesos in lottery funds during her administration, worth about $8.8 million at the time of her arrest.

Lawyers for Mrs. Arroyo contended that prosecutors did not prove that the mishandled funds went to her. She had been charged with plunder, which disqualified her for bail, but her lawyers said a spinal problem made her eligible for humanitarian release as she awaited trial.

Mrs. Arroyo, 69, is the daughter of a former president of the Philippines, Diosdado P. Macapagal. She attended Georgetown University at the same time as Bill Clinton, the former United States president, and was a popular senator before being elected vice president in 1998.