Answer:
Spain
Explanation:
Here's an article going in-depth: https://history.house.gov/Exhibitions-and-Publications/APA/Historical-Essays/Exclusion-and-Empire/The-Philippines/
To be honest I'm not that good at explaining things when it comes to history :)