Husband was issued a SSN stated for work only we used that to file taxes for years. He was denied a green card, can I still use SSN though it's not valid for work anymore

I just want to know if we can file using that SSN or should I apply for ITIN?