If you had the eticket number then you had a ticket and reservation and presented yourself at the gate in time -- it sounds like UA owes you denied boarding compensation to the tune of $1,300 (depending on various factors).
If the agent was doing the correct thing then the fault lies somewhere else in UA's systems or procedures but that's UA's problem. The end result is the same.