Judge orders psychiatric treatment for man who forcibly ente