A British judge says Charlie Gard will be moved to a hospice to spend his final hours there before his life support is turned off.