Impeachment Inquiry Is Legal, Judge Rules, Giving Democrats a Victory