US judge agrees to hear challenge to Trump travel ban