Marine accused of violating military code in criticizing president