The decision capped a three-year legal fight between the tech giant and Canberra over child internet safety regulations.