ention, correctional, or residential facility described by Subsection (a) applies for a charter, the facility must provide all educational opportunities and services, including special education instruction and related services, that a school district is required under state or federal law to provide for students residing in the district through a charter school operated in accordance with and sub