A federal judge appointed by former President Barack Obama has banned President Donald Trump from adding his name to the Kennedy Center.