Spain's acting prime minister Mariano Rajoy said on Thursday he had taken a "decisive step" towards forming a government.