Bahrain has charged four US journalists with taking part in an illegal gathering but they were planning to leave the country after being released, their lawyer said.