The tax law says if you claim non-residence alien status, for tax benefits, you have to file separately. For H1B, you are residence for tax purposes and you should be able to file jointly.