Both TAP and United are Star Alliance airlines. When checking your bags in Oporto, ask to have them checked through to your final destination. If successful, that should take care of your problem, otherwise, you'd be getting awfully close to United's baggage check-in cut off in LIS.