You can keep the first priority date, as long as the first approved I-140 is not revoked by company A.