Spain on Thursday opened a corruption investigation into a key ally of Prime Minister Pedro Sanchez over contracts for the purchase of face masks during the Covid-19 pandemic.