A federal appeals court has ruled that National Guard troops sent to Illinois by President Trump may remain under federal control but cannot patrol or protect property while legal challenges continue.