You need to pass a value for this attribute, not just the variable u; see the Gurobi documentation.
There is an example in the Gurobi.jl tests with the correct MOI syntax.
Just don’t forget to pass an integer value for BranchPriority, e.g.:
MOI.set(model, Gurobi.VariableAttribute("BranchPriority"), u, 1)