US stocks open higher to regain some weeklong losses