Working remotely in a different state since March - where do I pay taxes?

My office is based out of New York City, but I left in mid-March due to COVID. I lived in MA for a bit, and then DC for a bit. For 2020, where do I owe taxes? Do I need to fill out state tax forms for all three states?

 

I also recently got married during the year, and my husband has been living in DC the whole year. Does filing jointly make sense if my income will be taxed in different states than his?