A Brazilian appeals court judge on Monday ordered the release of former President Michel Temer from jail, following his arrest last week in connection with a corruption investigation.