On the Classes page, a toggle button is located on the right side of the Filter. The default is OFF, which SHOWS all Programs in the selected Enrollment Period.
You have to turn on the toggle for you to be able to HIDE the programs that have an "Enrollment Ends On" date: