Labor MP 'used racism' to avoid scrutiny