WASHINGTON—The White House is weighing a measure that would require colleges and universities to take a financial stake in their students’ ability to repay government loans, an effort that could squeeze loan availability to students and reduce defaults.

For several months, Trump administration officials have been discussing enacting such a mechanism or making a push for one in Congress as part of a broader effort to combat rising college costs.

In...