Definitions of Patriot Act
(US LAW) a set of anti-terrorism measures approved by the US Senate in October 2001, giving the government greater powers to detain suspected terrorists, eavesdrop (=listen secretly) on communications and counter money-laundering
The collection of this information is legal. It falls under the 2001 Patriot Act.