Fix update of trial environments, added deletion of trial observations when trial instances is changed

Reviewer: Tiffany Go (post-commit)

Issue: GCP-9548