This chapter does not affect the validity of any agreement entered into between a tribe and a public agency before August 1, 1999.