US stocks post weekly gains despite job figures sparking Fed fears