You did the right thing morally. Legally you had no such obligation. https://www.consumer.ftc.gov/articles/0181-unordered-merchan...
In fact, the code states: "Whoever, without authority, opens, or destroys any mail or package of newspapers not directed to him, shall be fined under this title or imprisoned not more than one year, or both." 18 USC 1703