You can get a tax credit for it on US form 1040. If total foreign tax withheld was less than $300, then
it's easy. Otherwise you have to fill out form 1116 which is moderately complicated. You'll get all the withheld foreign tax back via a dollar for dollar reduction in your US income tax, unless your income tax owed is already under $300.
There may be exceptions if your foreign income is greater than $20,000, of if your total income
is above the alternative minimum tax threshold (meaning you may only be able to claim a credit for part
of the amount withheld) but, I'm not sure.