And, while I don't think it is wise to travel with that much cash precisely because of crooks (including those who work for the government), that still does not justify the seizure.
Actually, its perfectly legal if you declare it and fill out the form