The draft legislation could benefit more than 300 people and will give Pedro Sánchez the parliamentary support needed to remain prime minister.