9 months pregnant and terminated

So today at 36 weeks and 4 days pregnant, my office pulled me into the conference room and fired me. Their reason was for "poor attendance". I did receive a write up for leaving work early two weeks ago due to having contractions and being admitted to labor and delivery. 
According to their write up, I should have been allowed one more call off before I got fired. I haven't missed any or left early since I did get written up, so my termination blind sided me today. 
So tonight at midnight I lose my medical insurance and am now without an income. I'm definitely feeling overwhelmed today.