German court rules anti-terror powers too broadly defined