Obama acted lawfully