Australia’s supermarket giant has been caught red-handed breaking consumer law, the federal court ruled.