powell won praise from lawmakers for helping to restore order to the white house national security council in the wake of disclosures that an nsc operation sold arms to iran and diverted the profits to the rebels in nicaragua .