Mexico is close to approving a plan to make funds available to carmakers struggling to keep their plants operating, according to the economy ministry.