The terminations are part of the president’s effort to expand his legal control over independent agencies.