Major U.S. equity indexes rallied in the final hours of Friday to close higher after seesawing between gains and losses throughout most of February's final session.