A senior Albanese minister has taken aim at the New Zealand Prime Minister over comments he made about capital gains tax.