Married filing jointly and living in same state, but working in different states

We both live in DC. My office is based on NY, so I believe I would have to pay NY state taxes. My husband works in DC only. 

 

How do I prevent my husband's income from being taxed in NY? Do we file separately instead of jointly? 

 

Also, in DC, do we get credit for state taxes paid to NY?