A court ruled Monday to temporarily reinstate two members of independent federal boards fired by President Donald Trump.