Markets bracing for turbulence, with traders warning a ruling against tariffs could leave federal government on the hook for billions in repayments.