If the Visa number is available, both principle and dependent can file I-485, no matter I-140 is approved or not. EAD is for working, not for entry.