A dairy farm has been fined after a farm worker was struck by a bull and suffered a serious leg injury.