In a social media post, he described the judgment as “a slap in the face” to the Chandrababu Naidu government