State fire marshal's office approved carnival ride that badly injured teens