A federal judge on Tuesday ordered government agencies to restore public access to health-related webpages and datasets that they removed to comply with an executive order by President Donald Trump.