You actually didn’t tell the whole story. What you mentioned is already pretty rough, but to add to your story, the Jazz also were forced give up future three time MVP Moses Malone as part of this agreement.
The Jazz actually initially got Moses Malone in the ABA Dispersal Draft. However, since the Jazz were forced to give up these 3 first round picks you mentioned, they were then forced to give up the rights to Malone in order to get back their 1977 first round pick as part of the agreement for Goodrich. So they not only gave up the 1979 first rounder which became Magic, they also gave up Moses Malone in order to get back the 1977 first rounder to give to the Lakers, to go along with the 1978 first rounder. I believe the 1978 first rounder was used by the Lakers as part of a deal with Boston to acquire future HOF Charlie Scott.
Moses Malone himself has an interesting story. Despite leading the ABA in offensive rebounding as a 19 year old rookie, people back then didn’t quite understand age adjusted production, so several NBA teams gave up on him (Jazz, Blazers, and Braves) when he went from the ABA to the NBA, until he found a home in Houston and the rest is history.