Maine ports get $2M for security