A federal judge in California dismissed Daniels' defamation claim against the president and ordered her to reimburse Trump's legal fees for defending the lawsuit.