Schools scramble to comply with state law