file a resident return(1040) in the state where you are a permanent resident. This state has the right to tax ALL of your income, wherever it was earned. After you file your resident return in your home state, you then need to go about filing a nonresident return(1040NR) in state where your husband earned money. A nonresident return only taxes you on the money you earned in that state.
Don’t worry about being double taxed. You will have an opportunity to claim a credit for taxes paid to the other state.