San Francisco will open a new public school next fall, the first in 20 years and likely the last for the foreseeable future given declining enrollment.