Trademark law is historically grounded in the commerce clause of the Constitution. It is still based on principles of unfair competition and consumer confusion. Trademark law was historically shaped by the common law. In 1946, the Lanham Act established a national system for trademark registration and protection, ensuring that trademarks are used in a way that avoids consumer confusion. The Lanham Act also provides legal remedies for infringement, dilution, and other unfair competition. This statute is currently codified in Title 15 of the US Code.
McCarthy on Trademarks and Unfair Competition (Westlaw)
Gilson on Trademarks (Lexis)