You will have 2 separate reservations, and I do not think that they can consolidate them later. However, I was in the same exact situation several months ago at JFK, one confirmed in F and the other in J (going to MXP) (Both with miles). I was able to secure the upgrade with miles in the lounge at JFK, while at check in they told me it was impossible. Only Emirates employees are entitled to do that