MANILA ( Reuters ) - The Philippines ' highest court has ruled an American soldier convicted of raping a Filipina in 2006 must be placed in government custody , scrapping a deal between the two countries that allowed detention inside the U.S. embassy .