Federal judge rules in favor of GOP lawmaker being allowed to question former prosecutor