Carry-on restrictions will be defined by United, which are generally better for transatlantic flights (but note that if you are connecting on to a intra-European flight on Lufthansa, the restrictions will likely be much more strict for that segment). Also, you will check in at the airport with United, not Lufthansa.