Once your H4 trasnfer is approved. Your status is tied with your huaband's. Since H is dual status, it's OK to file green card application. Once your I140 got denied, even your I485 got approved it won't be good. But you can appeal for I140, it'll take some time to get the result back.