We recommed you apply for California CAP Repair Program. The CAP program will pay up to $500 in smog check related repairs. Plus once you apply and get accepted, the DMV can you give a free temporary 60 day registration permit.
For more information follow the link below.
Consumer Assistance Program for Smog Check Repairs