US stocks rallied into the close on Friday despite a subdued start as investors went bargain-hunting before the month-end following a poor February performance on equity markets.