Unless you have Global Entry and physically have your cards, and use a porter, this likely will not work. STT can be a complete zoo. Not sure of the cutoff for United. AA is three hours before flight. We fly Delta.
I would take the early ferry and spend the day at the Emerald Beach Resort.