The court heard that gardaí believe an attack was planned on Ireland’s first mosque on behalf of a right-wing extremist group.