An Idaho law banning gender-affirming healthcare treatments for minors has been preliminarily blocked by a federal judge.