I think the best bet for the Philippines to be part of Mexico is for the Aranda Plan to go through, and so the Viceroyalty of Mexico (which included the Philippines) gets its own local king that is a vassal of the now-Emperor of Spain. Then, have the Spanish Empire slowly decentralize, and so the now-Kingdom of Mexico (which includes the Philippines) becomes independent in all but name.