A public body that enters into a service agreement pursuant to this chapter, under which a facility is owned wholly or partly by a service provider, shall be eligible for grants or loans to the extent permitted by law or regulation as if the entire portion of the facility dedicated to service to such public body were publicly owned. The grants or loans shall be made to and shall inure to the benefit of the public body and not the service provider. Such grants or loans shall be used by the public body for all or part of its ownership interest in the facility, and/or to defray a part of the payments it makes to the service provider under a service agreement if such uses are permitted under the grant or loan program.