GOP lawmakers: Prisoner exchange violated law