WASHINGTON - The Supreme Court justices, hearing a Second Amendment challenge to Chicago's ban on handguns, signaled yesterday that they were ready to extend gun rights nationwide, clearing the way for legal attacks on state and local gun restrictions.