Political drama has obscured a battle over spy powers