U.S. astronauts take spacewalk to make repair