Police use of data seized from the partner of the Guardian journalist was partially curtailed by the high court.