The city of Fremont has agreed to pay $4.5 million to settle a lawsuit by a former nurse at Washington Hospital who was severely injured when she was hit by a car in a crosswalk.