In what should end a massive legal battle, New York City has reached an agreement worth up to $657 million to settle more than 10,000 lawsuits filed by World Trade Center rescue and response workers. The tentative deal must still be approved by a judge and 95 percent of the workers. Under the terms of the settlement, the city and other companies represented by the World Trade Center Captive Insurance Company would be liable for a minimum of $575 million — with more money available if certain conditions are met. Most of the money would come out of a $1 billion grant from the federal government. The settlement creates a point system for payouts based on the severity of a person’s illness. Some workers would get only a few thousand dollars, while others could get more than $1 million.