The accounts posted a series of profanity-laden posts and one in which hackers said they supported President Donald Trump.