"You may be investigating a terrorist angle, but if you pick up someone, you have to follow the procedure," court said to Delhi Police