It's not illegal, but it was a violation of NFL rules. They sent out a memo to all coaches telling them to stop, but the Patriots continued. They were then fined for "use of equipment to videotape an opposing team’s offensive or defensive signals."