New York inmates will be able to view total solar eclipse after lawsuit settled with corrections department