Amazon will invest in Diamond Sports as part of a bankruptcy restructuring agreement