Get your taxes done using TurboTax

No what you have withheld or pay to state doesn't affect your federal return.   The whole gain is taxable on federal.  It will add to your income and may push you into a higher tax bracket.