H1B EXTENSION + AMENDMENT After 240 Days

Hi,
I am in USA and working in XXX company.

I am in the H1B Amendment + Extension. I already completed my 240 days and not getting any results from USCIS.

Whether it is legal to work or not?
Please help me

Thanks,
Krishna.