The England and Wales Cricket Board chiefs say it would be against the law to discriminate against Australian players ahead of the 2027 Ashes series.