Danville teachers' contract approved despite opposition